<?php


namespace Xiaoguai\DesignPattern\Main\Base\CacheDriver;


use Xiaoguai\DesignPattern\Main\Base\CacheInterface;

class FileCache implements CacheInterface
{

    public function getName(): string
    {
        return 'file';
    }


    public function get(string $key)
    {
        // get cache from file
        return 'file:' . $key;
    }
}